package com.example.demo.mapper;

import com.example.demo.entity.Articleinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author :蕉绿
 * @Date : 2023/3/14 21:36
 * @Version : V1.0
 * @Description :
 */
@Mapper
public interface ArticleMapper {

    int getArtCountByUid(@Param("uid") Integer uid);

    List<Articleinfo> getMyList(@Param("uid") Integer uid);
    int del(@Param("id")Integer id,@Param("uid") Integer uid);
    Articleinfo getDetail(@Param("id") Integer id);

    int incrRCount(@Param("id")Integer id);

    int add(Articleinfo articleinfo);
    int update(Articleinfo articleinfo);

    List<Articleinfo> getListByPage(@Param("psize") Integer psize,@Param("offsize")Integer offsize);

    int GetCount();
}
